package edu.sctu.zhuyingzhi.month201506.day20150626.observerMode;

/**
 * Created by user13 on 2015/6/26.
 */
public class Main {
    public static void main(String[] args) {
        Transporter transporter = new Transporter();
        Bodyguard bodyguard = new Bodyguard();
        Police police = new Police();
        Robber robber = new Robber();

        transporter.addWatch(bodyguard);
        transporter.addWatch(police);
        transporter.addWatch(robber);

        transporter.notifyWatcher();

    }
}
